<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var a = parseFloat(prompt('第一个')),
            b = parseFloat(prompt('第二个'));

        function jisuan(a, b) {
            return [a + b, a - b, a * b, a / b];
        }

        alert(jisuan(a, b));
    </script>
</head>

<body>

</body>

</html>